export * from "./document";
export * from "./chrome/storage";
export * from "./selection";

export function debounce(fn, timestep = 1000) {
  let timeout = null;
  return function () {
    clearTimeout(timeout);
    timeout = setTimeout(() => {
      fn.call(this, arguments);
    }, timestep);
  };
}
